import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    activeName:'first',
    doctor:{},
    setmealItem:{},
    vaccinItem:{
      tVaccinNoteDept:{}
    },
    sumPrice:'',
    member:{},
    loginFlag:true,
    loginUser:'',
    dialog:false
  },
  mutations: {
    editActiveName(state,payload){
      state.activeName=payload
    },
    setDoctor(state,payload){
      //alert(payload.doctor);
      state.doctor=payload.doctor;
    },
    setmealItemInit(state,payload){
      state.setmealItem=payload
    },
    vaccinItemInit(state,payload){
      state.vaccinItem=payload
    },
    memberInit(state,payload){
      state.member=payload
    },
    loginFlagInit(state,payload){
      state.loginFlag=payload
    },
    loginUserInit(state,payload){
      state.loginUser=payload
    },
    dialogInit(state,payload){
      state.dialog=payload
    }
  },
  actions: {
  },
  modules: {
  }
})
